Crate toad_array

source ·
Expand description

This microcrate contains the Array trait used by the toad CoAP runtime / ecosystem.

The Array trait defines common operations used with heap-allocated collections like Vec but is also implemented for tinyvec::ArrayVec allowing for applications to be usable on platforms with or without heap allocation.

Traits

  • Collections that support extending themselves mutably from copyable slices
  • A generalization of std::vec::Vec
  • Fill this collection to the end with copies of t, copying array initialization [0u8; 1000] to the Array trait.
  • Operations on ordered indexed collections
  • Create a data structure and reserve some amount of space for it to grow into
  • Truncate this collection to a new length.